import myAxios from '@/utils/request.js'
// /news/getCategoryAll/
export function getInfoCateAll (data) {
  return myAxios.request({
    method: 'post',
    url: '/news/getCategoryAll/',
    data
  })
}

export function addFirstInfoCate (data) {
  return myAxios.request({
    method: 'post',
    url: '/news/addFirstCategory/',
    data
  })
}

export function addSecInfoCate (data) {
  return myAxios.request({
    method: 'post',
    url: '/news/addChildrenCategory/',
    data
  })
}

export function getInfoList (data) {
  return myAxios.request({
    method: 'post',
    url: '/news/getList/',
    data
  })
}

export function getCategory (data) {
  return myAxios.request({
    method: 'post',
    url: '/news/getCategory/',
    data
  })
}

export function addInfo (data) {
  return myAxios.request({
    method: 'post',
    url: '/news/add/',
    data
  })
}

export function deleteInfo (data) {
  return myAxios.request({
    method: 'post',
    url: '/news/deleteInfo/',
    data
  })
}

export function editInfo (data) {
  return myAxios.request({
    method: 'post',
    url: '/news/editInfo/',
    data
  })
}
